package com.spc.car.data.mapper.sys;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spc.car.data.entity.sys.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-03-06
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<Integer> selectMenuListByRoleId(Long roleId);

    List<String> selectMenuPerms();

    /**
     * 根据菜单id查询用户权限
     * @param userId
     * @return
     */
    List<String> selectMenuPermsByUserId(Long userId);

    List<SysMenu> selectMenuListByUserId(@Param("ew") Wrapper ew);
}
